﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.SqlClient;
using System.Data;

namespace BussinessLayer
{
    public class tbllopcamtinhdoan
    {
        DataLayer.Data odata = new DataLayer.Data();
        public void lopcamtinhdoan(int _id, DateTime _ngaytochuc, string _ghichu)
        {
            SqlParameter[] sp = new SqlParameter[3];
            sp[0] = new SqlParameter("@lopcamtinhdoan_id", _id);
            sp[1] = new SqlParameter("@ngaytochuc", _ngaytochuc);
            sp[2] = new SqlParameter("@ghichu", _ghichu);
            odata.proc_TS("tblLopcamtinhdoan", sp);
        }
        public DataTable SelectAlllopcamtinhdoan()
        {
            return odata.view_text("SELECT * FROM lopcamtinhdoan");
        }
    }
}
